package com.ycxy.crm.workbench.service.impl;

import com.ycxy.crm.workbench.domain.ClueRemark;
import com.ycxy.crm.workbench.mapper.ClueRemarkMapper;
import com.ycxy.crm.workbench.service.ClueRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author jayLuo
 * @Date 2022/10/8 17:32
 * @PackageName:com.ycxy.crm.workbench.service.impl
 * @ClassName: ClueRemarkServiceImpl
 * @Description: TODO
 * @Version 1.0
 */
@Service("clueRemarkService")
public class ClueRemarkServiceImpl implements ClueRemarkService {
    @Autowired
    ClueRemarkMapper clueRemarkMapper;

    @Override
    public List<ClueRemark> queryClueRemarkForDetailById(String clueId) {
        return clueRemarkMapper.selectClueRemarkForDetailById(clueId);
    }

    @Override
    public int saveClueRemark(ClueRemark remark) {
        return clueRemarkMapper.insertClueRemark(remark);
    }

    @Override
    public int deleteClueRemarkById(String id) {
        return clueRemarkMapper.deleteClueRemarkById(id);
    }

    @Override
    public int updateClueRemark(ClueRemark clueRemark) {
        return clueRemarkMapper.updateClueRemark(clueRemark);
    }
}
